package cisdi.mes.sm.rm.domain;

import java.io.Serializable;
import javax.persistence.*;

import org.codehaus.jackson.map.annotate.JsonSerialize;

import cisdi.mes.utils.base.CustomDateSerializer;

import java.util.Date;


/**
 * The persistent class for the SM_RM_STORAGE_ELEMENT database table.
 * 
 */
@Entity
@org.hibernate.annotations.Entity(dynamicInsert=true, dynamicUpdate=true)
@Table(name="SM_RM_STORAGE_ELEMENT")
public class SmRmStorageElement implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@SequenceGenerator(name="SM_RM_STORAGE_ELEMENT_ID_GENERATOR", sequenceName="SEQ_SM",allocationSize=1)
	@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="SM_RM_STORAGE_ELEMENT_ID_GENERATOR")
	private long id;

	@Column(name="ITEM_NAME")
	private String itemName;

	@Column(name="ITEM_VALUE")
	private String itemValue;

	@Column(name="STORAGE_ID")
	private String storageId;

	@JsonSerialize(using = CustomDateSerializer.class)
	@Column(name="TIME_STAMP")
	private Date timeStamp;

    public SmRmStorageElement() {
    }

	public long getId() {
		return this.id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public String getItemName() {
		return this.itemName;
	}

	public void setItemName(String itemName) {
		this.itemName = itemName;
	}

	public String getItemValue() {
		return this.itemValue;
	}

	public void setItemValue(String itemValue) {
		this.itemValue = itemValue;
	}

	public String getStorageId() {
		return this.storageId;
	}

	public void setStorageId(String storageId) {
		this.storageId = storageId;
	}

	public Date getTimeStamp() {
		return this.timeStamp;
	}

	public void setTimeStamp(Date timeStamp) {
		this.timeStamp = timeStamp;
	}

}